module.exports = (app) => {
    const BaseController = require('./base')(app);


    return class DemoController extends BaseController {

        // 根据id获取详情
        async get(ctx) {
            const { demo: demoService } = app.service;
            let { id: id } = ctx.request.query;
            const res = await demoService.get({ id });
            this.success(ctx, res);
        }
    }
}